<template>
<el-row type="flex" class="row-bg" justify="center">
     <el-col :xl="6" :lg="7">
        <div class="login-form">
            <h2>欢迎来到AdminByVue管理系统</h2>
            <!-- <el-image style="width: 180px; height: 180px" :src="require('@/assets/markerhub/MarkerHub.jpg')"></el-image> -->
            <p>               公众号 aaaa            </p>
            <p>               扫码二维码，回复【bbbb】获取登录密码            </p>
        </div>
     </el-col>
      <el-col :span="1">
        <el-divider direction="vertical"></el-divider>
      </el-col>
      <el-col :xl="6" :lg="7">
            <el-form label-position="right" :rules="rules" label-width="80px" :model="loginForm" ref="loginForm">
                <el-form-item label="用户名" prop="username" style="width: 380px;">
                    <el-input v-model="loginForm.username"></el-input>
                </el-form-item>
                <el-form-item label="密码" prop="password" style="width: 380px;">
                    <el-input type="password" v-model="loginForm.password"></el-input>
                </el-form-item>
                <el-form-item label="验证码" prop="code" style="width: 380px;">
                    <el-input v-model="loginForm.code" style="width: 172px; float: left;" maxlength="5"></el-input>
                    <!-- <el-image class="captchaImg" :src="captchaImg" @click="getCaptcha"></el-image> -->
                </el-form-item>
                <el-form-item>
                     <el-button type="primary" @click="submitForm('loginForm')">登录</el-button>
                     <el-button @click="getPass">重置</el-button>
                </el-form-item>
            </el-form>
      </el-col>
</el-row>
</template>
<script>
import qs from 'qs'
export default {
  name: 'login',
  data () {
    return {
      loginForm: {
        username: 'admin',
        password: 'markerhub',
        code: '11111',
        token: ''
      }
    }
  }
}
</script>
<style scoped>
.el-col {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    }
.el-row {
    height: 100%;
    background-color: #fafafa;
    }
.el-divider {
    height: 200px;
    }
.captchaImg {
    float: left;
    margin-left: 8px;
    border-radius: 4px;
    }
</style>
